import store from '../../store/store'
import { getMovieRequest } from "../../api/index"
import {GETMOVIELIST} from "../constant/movieConstant"


export const getMovieAction = () => {
  return async () => {
    const re = await getMovieRequest()
    store.dispatch({
      type: GETMOVIELIST,
      data: re.data.data.list
    })
  }
}